import { put, get, remove } from '@/security/request'
import { uploadFile } from '@/security/request'
import { Application_Form } from '@/utils/keyWord'

export function getPageApi(data: any): Promise<IPageResult<any>> {
    return get("/admin/anchor/album/page",  data);
}

export function switchStatusApi(data: any): Promise<IRespResult<any>> {
    return put("/admin/anchor/album/switch/status",  data, Application_Form);
}

export function removeApi(data: any): Promise<IRespResult<any>> {
    return remove("/admin/anchor/album/remove",  data, Application_Form);
}

export function addApi(filePath: string, formData?: object): Promise<IRespResult<any>>{
    return uploadFile("/admin/anchor/album/add", filePath, formData)
}
